<h1>Listing things</h1>
<br /><br />
<%= text_field_with_auto_complete :contact, :name %>
<br /><br />
<%= "here i am" if 1 == 2 %>
<br /><br />
<ul id="sentence">
  <li id="word_1">baby</li>
  <li id="word_2">unzip</li>
  <li id="word_3">my</li>
</ul>

<br /><br />
<%= link_to_remote "WHAT?!?", :url => { :controller => 'things', 
                                        :action => 'my_update' }, 
                              :loading => "Element.show('loading')" %>
<div id="loading" style="display:none;"><%= image_tag "ajax-loader.gif" %></div>
<br /><br />

<br />
<%= link_to_function "toggle with my div", "Element.toggle('to_toggle')" %>
<br />
<div id="to_toggle">
  Now you see me, now you don't!
</div>
<br />
<br />
<%= link_to_remote 'Do Bingo', :url => {:action => 'bingo'} %>
<br /><br />
<div id="hobo">hi there</div>

<br />
<br />
<table>
  <tr>
    <th>Name</th>
  </tr>

<% for thing in @things %>
  <tr>
    <td><%=h thing.name %></td>
    <td><%= link_to 'Show', thing %></td>
    <td><%= link_to 'Edit', edit_thing_path(thing) %></td>
    <td><%= link_to 'Destroy', thing, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New thing', new_thing_path %>
